//
//  ViewController.m
//  UIPageControl
//
//  Created by clz on 2019/8/4.
//  Copyright © 2019年 clz. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIPageControl *pageControl = [[UIPageControl alloc]init];
    pageControl.numberOfPages = 5;
    pageControl.currentPage = 1;
    pageControl.currentPageIndicatorTintColor = [UIColor whiteColor];
    pageControl.pageIndicatorTintColor = [UIColor blackColor];
    [self.view addSubview:pageControl];
    pageControl.frame = CGRectMake(0, 100, self.view.frame.size.width, 50);
    pageControl.backgroundColor = [UIColor redColor];
}


@end
